//
//  LYYListModel.m
//  Icar
//
//  Created by dllo on 15/10/24.
//  Copyright © 2015年 小龙侠. All rights reserved.
//

#import "LYYListModel.h"
#include <stdlib.h>
@implementation LYYListModel

- (NSComparisonResult)compareHot:(LYYListModel *)hotResult{
    
    NSComparisonResult result = [[NSNumber numberWithInteger:self.program_join_num] compare:[NSNumber numberWithInteger:hotResult.program_join_num]];
    return -result;
}

- (NSComparisonResult)compareTime:(LYYListModel *)timeResult{
    
    NSComparisonResult result = [self.program_live_time compare:timeResult.program_live_time];
    return -result;
}

@end
